package com.foocus.foocuscloud.coustomer.api;

import com.foocus.foocuscloud.common.domain.ResponseWrapper;
import com.foocus.foocuscloud.coustomer.constant.FoocusCloudCustomerConstant;
import com.foocus.foocuscloud.coustomer.fallback.BaseUserRestServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = FoocusCloudCustomerConstant.FOOCUSCLOUD_PROVIDER_APPLY_ID, fallback = BaseUserRestServiceFallback.class)
public interface BaseUserRestService {

    String PATH_PREFIX = "/api/login/";

    @GetMapping(value = PATH_PREFIX + "get/{userId}")
    ResponseWrapper getLoginUser(@PathVariable("userId") String userId);
}
